package com.space.service;

import com.space.entity.User;
import com.space.exception.MyException;
import com.sun.org.apache.xpath.internal.operations.Bool;

import java.util.List;

/**
 * @author : 港某
 * @date : 2020/2/13 9:43
 */
public interface UserService {
    User userLogin(User user);

    String checkUserRegister(String userAccount, String userPhone);

    String checkUserInfo(String userAccount, String userPwd);

    String checkChangePwd(String userAccount, String userPhone);

    String checkUserPhone(String userId, String userPhone);

    User selectUserByAccount(String userAccount);

    User selectUserById(int userId);

    List<User> selectAllUser();

    int selectAllUserCount();

    void insertUser(User user);

    void updateUserPwd(User user);

    void updateUserPhone(User user);

    void updateUserStatusById(int[] userId, int userStatusId);

    void updateUserInfo(User oldUser, User user, String userPwd2) throws MyException;
}
